正文环境(三)

您所在的位置:网站首页 something missing中文 正文环境(三)

正文环境(三)

2024-07-11 07:49| 来源: 网络整理| 查看: 265

正文环境(三)———— 定理环境 #

作者:二花

关键词:定理环境

这一节,我们讨论定理环境

定理环境其实在我们正式的论文写作中用的并不是太多

\newtheorem{theory}{定理} 上面这个放置在导言区,命令声明了定理环境,两个参数,前者是新定义的环境名称,后者是显示在文档内的输出标题名字 \begin{theory}[可选的二标题] 定理内容 \end{theory}

同样需要定制样式时,我们需要使用宏包 theorem,几个比较重要的

\usepackage{theorem} \theorembodyfont{字体}设置定理内容字体,字体最好预先定义好 \theoremheaderfont{字体}设置定理头字体,字体最好预先定义好 \theorempreskipamount 定理前垂直距离变量,使用\setlength来设置 \theorempostskipamount 定理后垂直距离变量 \documentclass{article} \usepackage{ctex} \usepackage{theorem} \usepackage{fontspec} \newCJKfontfamily\qingsong[ItalicFont = FZQKBYSJW--GB1-0,BoldFont = FZQKBYSJW--GB1-0]{FZQKBYSJW--GB1-0} \newCJKfontfamily\fs[ItalicFont = STFangsong,BoldFont = STFangsong]{STFangsong} \newtheorem{theory}{夜雨秋灯} \theorembodyfont{\fs}%设置定理内容字体 \theoremheaderfont{\qingsong}%设置定理头字体 \setlength{\theorempreskipamount}{0.2cm} %定理前垂直距离变量 \setlength{\theorempostskipamount}{0cm} %定理后垂直距离变量 \begin{document} \noindent{\qingsong 夜雨秋灯}\qquad{\fs 两点之间,线段最短}\\ \vskip 1cm \begin{theory} 两点之间,线段最短 \end{theory} \begin{theory} 同位角相等 \end{theory} \begin{theory} 三角形两边之和大于第三边 \end{theory} \end{document}



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3